Signaler l'article

What is 0.1 + 0.2?

The answer obviously is 0.1 + 0.2 = 0.3, but computer might give 0.300000000000000004 as an answer instead. That's fine. It's a precision error, 32bits or 64bits there is a step count in representing fractional value. Even the 0.1 and 0.2 might not be represented as such once loaded into a register.

What does 1 0 1 mean?

The 1:0:1 are the values for the parameter expansion: $ {parameter:offset:length}. Start: from the first character 0 (numbered from 0). Length: for 1 character. In short: the first character of the first positional parameter $1. That parameter expansion is available in ksh, bash, zsh (at least).

What does 2 divided by 0 mean?

Divide (per somewhere online, I read), means to calculate how many times we could add one number to itself to get another number. (For example, 10/5 = 2. We add 5 to itself 2 times to get 10.) So with two divided by zero, we could continue adding zero to itself forever, but still not get to two. Doesn't that make 2/0 impossible, not undefined?

La première plateforme de trading de cryptomonnaies au monde

Recevez « Mes cadeaux de bienvenue »